<template>
    <div>
      <RouterView></RouterView>
    </div>
  </template>
  
  <script lang="ts" setup> 
  import { ref, KeepAlive, onMounted } from "vue";
  
  // let coms = {
  //   Home,
  //   Movie,
  //   About,
  // };
  
  // let comName = ref("Home");
  //当页面挂载成功时的钩子
  // onMounted(() => {
  //   //当hash值变化时的事件
  //   window.addEventListener(
  //     "hashchange",
  //     (event) => {
  //       //#/Home,获取路径名称
  //       let comKey = location.hash.substring(2);
  //       //更换当前组件名称
  //       comName.value = comKey;
  //     },
  //     false
  //   );
  // });
  </script>
  
  <style>
  </style>